/*
** my_error.c for libmy.a in /home/vanet_c//proj-kw/lib
** 
** Made by charles-edouard vanet
** Login   <vanet_c@epitech.net>
** 
** Started on  Thu Dec  6 17:08:50 2012 charles-edouard vanet
** Last update Sat Dec  8 18:46:55 2012 charles-edouard vanet
*/

#include	<stdlib.h>

void	my_error(char *begin_err, char *name, char *end_err, int is_exit)
{
  my_stderror("Error: ");
  if (begin_err)
    my_stderror(begin_err);
  if (name != NULL)
    my_stderror(name);
  if (end_err)
    my_stderror(end_err);
  if (is_exit == 1)
    exit(1);
}
